<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Kimi翻译助手 - 设置</title>
    <style>
        body {
            width: 100%;
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            font-family: Arial, sans-serif;
        }

        .container {
            background-color: #f5f5f5;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        h1 {
            color: #4285f4;
            margin-bottom: 20px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }

        input[type="text"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
        }

        input[type="text"]:focus {
            border-color: #4285f4;
            outline: none;
            box-shadow: 0 0 0 2px rgba(66,133,244,0.2);
        }

        button {
            background-color: #4285f4;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            width: 100%;
        }

        button:hover {
            background-color: #3367d6;
        }

        .status {
            margin-top: 16px;
            padding: 12px;
            border-radius: 4px;
            text-align: center;
            display: none;
        }

        .success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .help-text {
            margin-top: 8px;
            color: #666;
            font-size: 12px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Kimi翻译助手设置</h1>
        <div class="form-group">
            <label for="apiKey">Kimi API Key:</label>
            <input type="text" id="apiKey" placeholder="请输入您的Kimi API Key">
            <div class="help-text">
                您可以在 <a href="https://platform.moonshot.cn/" target="_blank">Moonshot AI 平台</a> 获取 API Key
            </div>
        </div>
        <button id="saveBtn">保存设置</button>
        <div id="status" class="status"></div>
    </div>
    <script src="js/options.js"></script>
</body>
</html> 